package com.example.swagger.service;

import com.example.swagger.entity.Admin;
import com.example.swagger.mapper.AdminMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
@Component
public class AdminService {
    @Autowired
    AdminMapper adminMapper;

    public List<Admin> getAdmins() {
        return adminMapper.getAdmins();
    }

}
